import { ITEM_STATUS } from "@project/todo/model/constant";

const { WAIT } = ITEM_STATUS;
export default class Item{
    constructor(props){
        const { id = "", name = "", date = +new Date, status = WAIT } = props || {};
        this.id =  id;
        this.name = name;
        this.date = date;
        this.status = status;
    }

    updateStatus(status){
        this.status = status;
    }
}